package com.qdlc.p2p.dal.dto;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.qdlc.p2p.common.constant.Global;

/**
 * user_login_ext 实体类
 *
 * @author liya
 * @version 1.1.0.0
 */
@Entity
@Table(name = Global.DB_PREFIX + "user_login_ext")
public class UserLoginExt {

    /** 主键 */
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private long id;

    /** 用户ID */
    @Column(name = "user_id")
    private long userId;

    /** 用户名 */
    private String userName;

    /** 添加时间 */
    private Date addTime;

    /** 删除状态 */
    private int isDelete;

    public UserLoginExt() {
    }

    public UserLoginExt(User user) {
        this.userId = user.getUserId();
    }

    /**
     * 获取主键
     *
     * @return 主键
     */
    public long getId() {
        return id;
    }

    /**
     * 设置主键
     *
     * @param id 要设置的主键
     */
    public void setId(long id) {
        this.id = id;
    }


    public long getUserId() {
		return userId;
	}

	public void setUserId(long userId) {
		this.userId = userId;
	}

	/**
     * 获取用户名
     *
     * @return 用户名
     */
    public String getUserName() {
        return userName;
    }

    /**
     * 设置用户名
     *
     * @param userName
     */
    public void setUserName(String userName) {
        this.userName = userName;
    }

    /**
     * 获取用户注册时间
     *
     * @return 用户注册时间
     */
    public Date getAddTime() {
        return addTime;
    }

    /**
     * 设置用户注册时间
     *
     * @param addTime
     */
    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    /**
     * 获取删除状态
     *
     * @return 删除状态
     */
    public int getIsDelete() {
        return isDelete;
    }

    /**
     * 设置删除状态
     *
     * @param isDelete
     */
    public void setIsDelete(int isDelete) {
        this.isDelete = isDelete;
    }
}
